CC 	= gcc
INSTALL	= install
IFLAGS  = -I../../../csf/include -I../../../csf/confparser -I/usr/local/include -I../../csf/monitor -I../ -I../../utils/include
CFLAGS	= $(cflags)
PREDEF = $(pdef)
LDFLAGS	= -shared -L/usr/local/lib -L../../../lib -lconfparser -lmod -lparsemail -lmbfl -lmfile -lutils -lmonitor

LINK	= -Wl
OBJS	= fileop.o crc32.o

WARN    = $(warn)

.PHONY: clean

.c.o:	
	$(CC) $(WARN) -c $*.c $(CFLAGS) $(IFLAGS) $(PREDEF)

fileop.so: $(OBJS)
	$(CC) $(IFLAGS) -o $@ $(DEBUG) $(OBJS) $(LINK) $(LDFLAGS)
	mv -f $@ ../../../bin/


clean:
	rm -f *.o ../../../bin/fileop.so

